package com.cloudsea.yunhaistores.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.util.List;

@Data
@TableName(value = "attributes", autoResultMap = true)
public class Attributes {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private Long spuId;
    private String attributeName;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> options; // JSON字段
}
